﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Pos.DAL;
using Pos.Model;
using Pos.SharedLibrary;
using System.Data;

namespace POS
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btn_submit_click(object sender, EventArgs e)
        {
            DishDAL dish = new DishDAL();
            DishInfo info = new DishInfo();
            info.EnglishName = tb_EnglishName.Text;
            info.ChineseName = tb_ChineseName.Text;
            info.Price = tb_Price.Text;

            dish.Add(info);

            OrderDAL order = new OrderDAL();
            DataTable dt = order.GetAll();
            OrderHub orderHub = new OrderHub();
            orderHub.Show(dt);

        }
    }
}
